package com.kailing.bootBatch.thread;

/**
 * <h3>partitionjob</h3>
 * <p>FooMain</p>
 *
 * @author : hduong
 * @version : 1.0
 * @date : 2019-12-18 09:54
 **/
public class FooMain {

    public static void main(String[] args) throws InterruptedException {
        Foo foo = new Foo();
        Thread t1 = new Thread(new Runnable() {
            @Override
            public void run() {
                System.out.print("one");
            }
        }, "线程一");
        Thread t2 = new Thread(new Runnable() {
            @Override
            public void run() {
                System.out.print("two");
            }
        }, "线程二");
        Thread t3 = new Thread(new Runnable() {
            @Override
            public void run() {
                System.out.print("three");
            }
        }, "线程三");
        foo.second(t2);
        foo.first(t1);
        foo.third(t3);
    }
}
